package com.example.provider.com.sjf.dao;


import com.example.provider.com.sjf.pojo.Providers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface ProviderMapper {
    //全查
    List<Providers> getAll();

    //查询id
    Providers show(@Param("id") Long id);

    //根据id删除
    int deleteByPrimaryKey(@Param("id") Long id);

    //添加
    int insert(Providers record);

    //通过id查询
    Providers selByid(Long id);

    //修改
    int updateByPrimaryKeySelective(Providers record);

    //模糊查询
    List<Providers> selM(Providers record);
}